<div class="file_list_div">

    {foreach from=$fileList key=index item=value}
        <div class="file_list_element">
            <div class="file_name">
                <a href="{$value.file_link}">{$value.file_name}</a>
            </div>
            <div class="file_rating">
                <a id="m_rating_button_{$value.file_name}">-</a> 
                <span id="rating_{$value.file_name}">{$value.file_raiting}</span> 
                <a id="p_rating_button_{$value.file_name}">+</a>
            </div>
            <div class="file_uploader">
                Uploader: <a href="./search.php?id={$value.user_id}">{$value.file_uploader}</a>
            </div>
        </div>
    {foreachelse}
        {assign var=errorMsg value='*** No files ***'}
        <br />
        {include file='page_frame/error_msg.tpl'}
    {/foreach}

</div>